
# FROM nginx
# LABEL maintainer="kunling.wu"
# ENV RUN_USER nginx 
# ENV RUN_GROUP nginx 
# ENV DATA_DIR web/dist
# ENV LOG_DIR /data/log/nginx
# RUN mkdir  /data/log/nginx -p 
# RUN chown nginx.nginx -R /data/log/nginx
# ADD dist /data/web
# ADD nginx.conf /etc/nginx/nginx.conf
# ADD default.conf /etc/nginx/conf.d/default.conf
# EXPOSE 80
# EXPOSE 81
# EXPOSE 82
# CMD ["nginx", "-g", "daemon off;"]



FROM nginx
LABEL maintainer="kunling.wu"
ENV RUN_USER nginx 
ENV RUN_GROUP nginx 
ENV DATA_DIR umih5/dist
ENV LOG_DIR /data/log/nginx
RUN mkdir  /data/log/nginx -p 
RUN chown nginx.nginx -R /data/log/nginx
ADD dist /data/umih5
ADD nginx.conf /etc/nginx/nginx.conf
ADD default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 81
EXPOSE 82
CMD ["nginx", "-g", "daemon off;"]
